package com.starlink.controller.wechat;

import com.starlink.common.WebResponse;
import com.starlink.common.annotation.WebAccess;
import com.starlink.model.vo.UserVipSetVO;
import com.starlink.service.UserVipSetService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author zhanghong
 */
@RestController
@RequestMapping("/wechat/vipSet")
@Api(value = "【小程序端】VIP规则设置模块", tags = {"【小程序端】VIP规则设置模块"})
public class WechatUserVipSetController {

    @Autowired
    private UserVipSetService userVipSetService;

    @WebAccess(login = true)
    @ApiOperation("VIP设置信息查询")
    @PostMapping("/getVipInfo")
    public WebResponse<UserVipSetVO> getVipInfo() {
        return WebResponse.build(userVipSetService.getVipInfo());
    }
}
